import request from '@/utils/request'

// 库存列表
export function queryStockList(params) {
  return request({
    url: '/admin/purchase/getConsumptionRecordList',
    method: 'post',
    data: {
      ...params
    }
  })
}

// 创建消耗记录
export function createConsume(params) {
  return request({
    url: '/admin/purchase/createConsumptionRecord',
    method: 'post',
    data: params
  })
}

// 创建物资
export function createMaterial(params) {
  return request({
    url: '/admin/purchase/createMaterial',
    method: 'post',
    data: {
      ...params
    }
  })
}

// 获取物资列表
export function getMaterialList(params) {
  return request({
    url: '/admin/purchase/getMaterialList',
    method: 'post',
    data: params
  })
}
